package cn.zzuisa.bluebox.biz.device.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@lombok.Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("g_device_data")
@ApiModel(value="数据对象", description="")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Data extends Model<Data> {
    @ApiModelProperty(value = "自增标识id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "时间区间")
    @TableField("time")
    private String time;

    @ApiModelProperty(value = "经度")
    @TableField("latitude")
    private String[] latitude;

    @ApiModelProperty(value = "纬度")
    @TableField("longitude")
    private String[] longitude;

    @ApiModelProperty(value = "创建时间")
    @TableField("createTime")
    private LocalDateTime createTime;

    @Override
    protected Serializable pkVal() {
        return null;
    }
}
